package com.ssh.demo.main.common.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

@Entity
public class Admin implements Serializable {
	
	private static final long serialVersionUID = 1L;
	/** id **/
	private Object id;
	/** num **/
	private String num;
	/** 用户名 **/
	private String user;
	/** name **/
	private String name;
	/** pass **/
	private String pass;
	/** 登录次数 **/
	private Object loginci;
	/** status **/
	private Object status;
	/** 用户类型 **/
	private Object type;
	/** 性别 **/
	private String sex;
	/** 手机 **/
	private String tel;
	/** face **/
	private String face;
	/** deptid **/
	private Object deptid;
	/** deptname **/
	private String deptname;
	/** superid **/
	private String superid;
	/** superman **/
	private String superman;
	/** ranking **/
	private String ranking;
	/** sort **/
	private Object sort;
	/** deptpath **/
	private String deptpath;
	/** superpath **/
	private String superpath;
	/** groupname **/
	private String groupname;
	/** mobile **/
	private String mobile;
	/** 入职日期 **/
	private Date workdate;
	/** email **/
	@Column(name="email",length=50)
	private String email;
	/** lastpush **/
	private Object lastpush;
	/** adddt **/
	private Object adddt;
	/** 微信号 **/
	private String weixinid;
	/** 离职日期 **/
	private Date quitdt;
	/** 是否APP提醒 **/
	private Object apptx;

	public Object getId() {
		return id;
	}
	public void setId(Object id) {
		this.id = id;
	}
	public String getNum() {
		return num;
	}
	public void setNum(String num) {
		this.num = num;
	}
	public String getUser() {
		return user;
	}
	public void setUser(String user) {
		this.user = user;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPass() {
		return pass;
	}
	public void setPass(String pass) {
		this.pass = pass;
	}
	public Object getLoginci() {
		return loginci;
	}
	public void setLoginci(Object loginci) {
		this.loginci = loginci;
	}
	public Object getStatus() {
		return status;
	}
	public void setStatus(Object status) {
		this.status = status;
	}
	public Object getType() {
		return type;
	}
	public void setType(Object type) {
		this.type = type;
	}
	public String getSex() {
		return sex;
	}
	public void setSex(String sex) {
		this.sex = sex;
	}
	public String getTel() {
		return tel;
	}
	public void setTel(String tel) {
		this.tel = tel;
	}
	public String getFace() {
		return face;
	}
	public void setFace(String face) {
		this.face = face;
	}
	public Object getDeptid() {
		return deptid;
	}
	public void setDeptid(Object deptid) {
		this.deptid = deptid;
	}
	public String getDeptname() {
		return deptname;
	}
	public void setDeptname(String deptname) {
		this.deptname = deptname;
	}
	public String getSuperid() {
		return superid;
	}
	public void setSuperid(String superid) {
		this.superid = superid;
	}
	public String getSuperman() {
		return superman;
	}
	public void setSuperman(String superman) {
		this.superman = superman;
	}
	public String getRanking() {
		return ranking;
	}
	public void setRanking(String ranking) {
		this.ranking = ranking;
	}
	public Object getSort() {
		return sort;
	}
	public void setSort(Object sort) {
		this.sort = sort;
	}
	public String getDeptpath() {
		return deptpath;
	}
	public void setDeptpath(String deptpath) {
		this.deptpath = deptpath;
	}
	public String getSuperpath() {
		return superpath;
	}
	public void setSuperpath(String superpath) {
		this.superpath = superpath;
	}
	public String getGroupname() {
		return groupname;
	}
	public void setGroupname(String groupname) {
		this.groupname = groupname;
	}
	public String getMobile() {
		return mobile;
	}
	public void setMobile(String mobile) {
		this.mobile = mobile;
	}
	public Date getWorkdate() {
		return workdate;
	}
	public void setWorkdate(Date workdate) {
		this.workdate = workdate;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	public Object getLastpush() {
		return lastpush;
	}
	public void setLastpush(Object lastpush) {
		this.lastpush = lastpush;
	}
	public Object getAdddt() {
		return adddt;
	}
	public void setAdddt(Object adddt) {
		this.adddt = adddt;
	}
	public String getWeixinid() {
		return weixinid;
	}
	public void setWeixinid(String weixinid) {
		this.weixinid = weixinid;
	}
	public Date getQuitdt() {
		return quitdt;
	}
	public void setQuitdt(Date quitdt) {
		this.quitdt = quitdt;
	}
	public Object getApptx() {
		return apptx;
	}
	public void setApptx(Object apptx) {
		this.apptx = apptx;
	}
	//override toString Method 
	public String toString() {
		StringBuffer sb=new StringBuffer();
		sb.append("id:"+this.getId()+"\r");
		sb.append("num:"+this.getNum()+"\r");
		sb.append("user:"+this.getUser()+"\r");
		sb.append("name:"+this.getName()+"\r");
		sb.append("pass:"+this.getPass()+"\r");
		sb.append("loginci:"+this.getLoginci()+"\r");
		sb.append("status:"+this.getStatus()+"\r");
		sb.append("type:"+this.getType()+"\r");
		sb.append("sex:"+this.getSex()+"\r");
		sb.append("tel:"+this.getTel()+"\r");
		sb.append("face:"+this.getFace()+"\r");
		sb.append("deptid:"+this.getDeptid()+"\r");
		sb.append("deptname:"+this.getDeptname()+"\r");
		sb.append("superid:"+this.getSuperid()+"\r");
		sb.append("superman:"+this.getSuperman()+"\r");
		sb.append("ranking:"+this.getRanking()+"\r");
		sb.append("sort:"+this.getSort()+"\r");
		sb.append("deptpath:"+this.getDeptpath()+"\r");
		sb.append("superpath:"+this.getSuperpath()+"\r");
		sb.append("groupname:"+this.getGroupname()+"\r");
		sb.append("mobile:"+this.getMobile()+"\r");
		sb.append("workdate:"+this.getWorkdate()+"\r");
		sb.append("email:"+this.getEmail()+"\r");
		sb.append("lastpush:"+this.getLastpush()+"\r");
		sb.append("adddt:"+this.getAdddt()+"\r");
		sb.append("weixinid:"+this.getWeixinid()+"\r");
		sb.append("quitdt:"+this.getQuitdt()+"\r");
		sb.append("apptx:"+this.getApptx()+"\r");
		return sb.toString();
	}
	//return String[] filed; 
	public String[] getField() {
		return new String[]{"id","num","user","name","pass","loginci","status","type","sex","tel","face","deptid","deptname","superid","superman","ranking","sort","deptpath","superpath","groupname","mobile","workdate","email","lastpush","adddt","weixinid","quitdt","apptx"};
	}
}